using System;
using System.Data.SqlTypes;

namespace EntityObjectLayer
{
    [Serializable]
    public class BEClass
    {
        #region Class Member Declarations

        private SqlInt32 m_iGrade;
        private SqlString m_sID, m_sName;
        private SqlString m_sType;

        #endregion

        #region Class Property Declarations

        public SqlString sID
        {
            get { return m_sID; }
            set
            {
                SqlString sIDTmp = value;
                if (sIDTmp.IsNull)
                {
                    throw new ArgumentOutOfRangeException("sID", "sID can't be NULL");
                }
                m_sID = value;
            }
        }


        public SqlString sName
        {
            get { return m_sName; }
            set
            {
                SqlString sNameTmp = value;
                if (sNameTmp.IsNull)
                {
                    throw new ArgumentOutOfRangeException("sName", "sName can't be NULL");
                }
                m_sName = value;
            }
        }

        public SqlInt32 iGrade
        {
            get { return m_iGrade; }
            set
            {
                SqlInt32 iGradeTmp = value;
                if (iGradeTmp.IsNull)
                {
                    throw new ArgumentOutOfRangeException("iGrade", "iGrade can't be NULL");
                }
                m_iGrade = value;
            }
        }


       


        public SqlString sType
        {
            get { return m_sType; }
            set
            {
                SqlString sTypeTmp = value;
                if (sTypeTmp.IsNull)
                {
                    throw new ArgumentOutOfRangeException("sType", "sType can't be NULL");
                }
                m_sType = value;
            }
        }

        #endregion
    }
}